package com.wxzz.elearing.user.service.openfeign;

import com.wxzz.elearing.user.service.openfeign.sentinel.LivetelecastApiFeignImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "2127-wxzz-livetelecast-application",fallback = LivetelecastApiFeignImpl.class)
public interface ILivetelecastApiFeign {

    /**
     * 根据讲师id查询直播时长
     *
     * @param docentId
     * @return
     */
    @RequestMapping(value = "/livetelecast-api/selectPlatformLivetelecastTimeByDocentId/{docentId}", method = RequestMethod.POST)
    Integer selectPlatformLivetelecastTimeByDocentId(@PathVariable Long docentId);

    /**
     * 根据讲师id查询直播数量
     *
     * @param docentId
     * @return
     */
    @RequestMapping(value = "/livetelecast-api/selectPlatformLivetelecastNumByDocentId/{docentId}", method = RequestMethod.POST)
    Integer selectPlatformLivetelecastNumByDocentId(@PathVariable Long docentId);
}
